package design.onekey.constant;


/**
 * @Description: 系统常量类
 * @author blcloak
 * @date 2020年5月29日10:28:46
 * @version V1.0
 */
public class Constants {


	/**
	 * 操作类型，用于操作日志时存储
	 */
	public static final String OPERATE_TYPE_ADD = "Add";
	public static final String OPERATE_TYPE_UPDATE = "Update";
	public static final String OPERATE_TYPE_DELETE = "Delete";
	public static final String OPERATE_TYPE_BATCHDELETE = "BatchDelete";
	public static final String OPERATE_TYPE_SEARCH = "Search";
	public static final String OPERATE_TYPE_LOGIN = "Login";
	public static final String OPERATE_TYPE_LOGOUT = "Logout";

	/**
	 * @Fields DEFAULT_PASSWORD : 默认密码
	 * @author blcloak
	 * @date 2020-06-12 04:18:48
	 */
	public static final String DEFAULT_PASSWORD = "666666";

    /**
     * @Fields PC_ADMIN_PREMISSION_STRING : pc端运营后台授权访问字符串
     * @author blcloak
     * @date 2020-06-12 04:19:05
     */
    public static final String  PC_ADMIN_PREMISSION_STRING = "jwt,perms[{0}]";

    /**
     * @Fields PUBLIC_STRING : 公开访问权限字符串
     * @author blcloak
     * @date 2020-06-12 04:19:12
     */
    public static final String  PUBLIC_STRING = "anon";

    /**
     * @Fields JWT_STRING : PC端运营后台登陆访问字符串
     * @author blcloak
     * @date 2020-06-12 04:19:20
     */
    public static final String  JWT_STRING = "jwt";

    /**
     * @Fields DOCTOR_JWT_STRING : 医生pc端登录校验
     * @author blcloak
     * @date 2020-06-30 02:21:12
     */
    public static final String  PC_DOCTOR_JWT_STRING = "doctorjwt";

    /**
     * @Fields PC_ADMIN_PREMISSION_STRING : 医生pc端授权访问字符串
     * @author blcloak
     * @date 2020-06-12 04:19:05
     */
    public static final String  PC_DOCTOR_PREMISSION_STRING = "doctorjwt,perms[{0}]";

    /**
     * @Fields JWT_PATIENT_MOBILE_STRING : 会员端登录访问字符串，包括app和小程序
     * @author blcloak
     * @date 2020-06-08 08:53:23
     */
    public static final String JWT_PATIENT_MOBILE_STRING = "patientmobilejwt";

    /**
     * @Fields JWT_PATIENT_MOBILE_STRING : 会员端登录访问字符串，包括app和小程序
     * @author blcloak
     * @date 2020-06-08 08:53:23
     */
    public static final String JWT_PATIENT_MOBILE_PERMISSION_STRING = "patientmobilejwt,perms[{0}]";

    /**
     * @Fields LOGIN_TIMES : 登录次数
     * @author blcloak
     * @date 2020-06-15 05:53:39
     */
    public static final Integer LOGIN_TIMES = 3;

    /**
     * @Fields LOGIN_TIME_INTERVAL : 登录出入密码次数时间，10分钟内三次错误则锁定五分钟
     * @author blcloak
     * @date 2020-06-16 07:48:21
     */
    public static final Long LOGIN_TIME_INTERVAL = 10 * 60 * 1000L;

    /**
     * @Fields LOGIN_TIME_LOCK : 登录锁定时间五分钟
     * @author blcloak
     * @date 2020-06-16 10:04:04
     */
    public static final Long LOGIN_TIME_LOCK = 5 * 60 * 1000L;

    /**
	 * @Fields VERIFYCODE_EXPIRETIME : 验证码过期时间，单位 分
	 * @author blcloak
	 * @date 2020-06-29 11:29:34
	 */
    public static final  int VERIFYCODE_EXPIRETIME=5;

    /**
     * @Fields LIMITSQL : sql查询限制一条的语句
     * @author blcloak
     * @date 2020-07-17 11:22:51
     */
    public static final String LIMITSQL = "LIMIT 1";

    /**
     * @Fields HOSPITALADMINROLECODE : 医院管理员角色代码
     * @author blcloak
     * @date 2020-08-13 04:28:30
     */
    public static final String HOSPITALADMINROLECODE = "hospitalAdmin";

    /**
     * @Fields VISIT_PATIENT_COUNT : 就诊人个数5
     * @author blcloak
     * @date 2020-08-27 02:26:29
     */
    public static final int VISIT_PATIENT_COUNT = 5;
    /**
    * @Description: 药店端jwt
    * @Author: wzc
    * @Date: 2020/11/2 08:58
    */
    public static final String  PC_DRUGSTORE_JWT_STRING = "drugstorejwt";
    /**
    * @Description: 药店端jwt
    * @Author: wzc
    * @Date: 2020/11/2 08:58
    */
    public static final String  PC_DRUGSTORE_PREMISSION_STRING = "drugstorejwt,perms[{0}]";

    /**
     * @Description: 监管端jwt
     * @Author: wzc
     * @Date: 2020/11/2 08:58
     */
    public static final String  PC_SUPERVISION_JWT_STRING = "supervisionjwt";
    /**
     * @Description: 监管端jwt
     * @Author: wzc
     * @Date: 2020/11/2 08:58
     */
    public static final String  PC_SUPERVISION_PREMISSION_STRING = "supervisionjwt,perms[{0}]";
}
